COMMON_DIR := $(shell ls -d */ | grep -Ev "^(include|obj)")
.PHONY: all $(COMMON_DIR)

export MyIncludePath_Common := $(COMMON_INCLUDE_PATH)
export MY_COMMON_OBJ_LINUX:=$(shell pwd)/obj/linux_obj
export MY_COMMON_OBJ_GCC:=$(shell pwd)/obj/gcc_obj

all:$(COMMON_DIR) 
	@echo -e $(MY_SUCCESS)
	@echo "$(shell pwd) : all Success"
	@echo -e $(AC_NULL)		
clean:
	@for dir in $(COMMON_DIR);do\
		$(MAKE) -C $$dir clean;\
	done
	@echo -e $(MY_SUCCESS)
	@echo "$(shell pwd) : clean Success"
	@echo -e $(AC_NULL)	
	
$(COMMON_DIR):
	@echo "Entering directory $@"
	$(MAKE) -C $@	